package Demo;

import java.util.Date;

public class Demo02Date {
    public static void main(String[] args) {
        //demo01();
        //demo02();
        Demo03();
    }

    private static void Demo03(){
        Date date = new Date();
        long time = date.getTime();
        System.out.println(time);
    }

    private  static void demo02(){
        Date d1 = new Date(0L);
        System.out.println(d1);

        Date d2 = new Date(15800000);
        System.out.println(d2);
    }
    private static void demo01(){
        Date date = new Date();
        System.out.println(date);

    }
}
